package com.gaswell.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gaswell.mapper.RDataMapper;
import com.gaswell.pojo.RData;
import com.gaswell.service.RDataService;
import com.gaswell.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DS("mysql")
public class RDataServiceImpl extends ServiceImpl<RDataMapper, RData> implements RDataService{
    @Autowired
    private RDataMapper rDataMapper;

    @Override
    public Result findLast(String jh) {
        return Result.success(rDataMapper.findLast(jh));
    }

    @Override
    public RData findLastRData(String jh) {
        return rDataMapper.findLast(jh);
    }
}
